#ifndef GAMECONTROLWINDOW_H
#define GAMECONTROLWINDOW_H

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QTimer>

class GameControlWindow : public QWidget
{
    Q_OBJECT
public:
    explicit GameControlWindow(QWidget *parent = nullptr);
    void stopTimer();
    int elapsedSeconds;


signals:
    void pauseStateChanged(bool isPaused);
    void returnToMain();


public slots:
    void startTimer();
    void resetTimer();


private slots:
    void updateTimeDisplay();
    void togglePause();


private:
    QLabel *timeLabel;
    QPushButton *pauseButton;
    QPushButton *returnButton;
    QTimer *timer;
    bool isPaused;
};

#endif // GAMECONTROLWINDOW_H
